﻿<UserControl x:Class="ScrumTable.UI.View.WinTouch.UserControls.ValueSelector"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Controls="clr-namespace:Microsoft.Surface.Presentation.Controls;assembly=Microsoft.Surface.Presentation" xmlns:UserControls="clr-namespace:ScrumTable.UI.View.WinTouch.UserControls" xmlns:Presentation="clr-namespace:Microsoft.Surface.Presentation;assembly=Microsoft.Surface.Presentation" xmlns:Converter="clr-namespace:ScrumTable.UI.View.Converter;assembly=ScrumTable.UI.View" Name="Root">
    <UserControl.Resources>
        <HierarchicalDataTemplate x:Key="Hierarchical" ItemsSource="{Binding Path=Element}">
            <TextBlock Text="{Binding}" TextWrapping="NoWrap"/>
            <HierarchicalDataTemplate.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <TextBlock Text="{Binding}" TextWrapping="Wrap"/>
                    </Grid>
                </DataTemplate>
            </HierarchicalDataTemplate.ItemTemplate>
        </HierarchicalDataTemplate>
    </UserControl.Resources>
    <Grid Margin="0,0,0,0">
      
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"></ColumnDefinition>
            <ColumnDefinition Width="24"></ColumnDefinition>
        </Grid.ColumnDefinitions>

        <Label Name="label" Height="26" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" VerticalAlignment="Center" BorderBrush="LightGray" BorderThickness="0.7"/>  

        <Grid Height="24" Width="24" Name="Selector" MouseDown="OnMouseDown" TouchDown="OnTouchDown" Grid.Column="1">
            <Rectangle Fill="LightGray" StrokeThickness="0.75">
                <Rectangle.Effect>
                    <DropShadowEffect BlurRadius="3" Direction="-90" Opacity="0.6" ShadowDepth="0"/>
                </Rectangle.Effect>
            </Rectangle>
            <Path Data="M326.25,225.5L334.125,233.375 334.125,225.50294z" Fill="Black" HorizontalAlignment="Right" Height="7" Margin="3" Stretch="Fill" VerticalAlignment="Top" Width="7"/>
        </Grid>

    </Grid>
</UserControl>